MP2 - Apache 2.2, virtual host, .PHP script does not run
am 08.03.2009 22:11:10 von Edward Bosco--001636283b0a12c3300464a1f51e I don't think the SetHandler is supposed to be there if you don't want it to --0016364994416fa5090464bd22fc
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
A file that works - store.php - containing html and php under the /webutils
location - will not now render as a web page; the browser wants to download
the file.
Does mod_perl prevent the operation of a PHP script?
Commenting out the Sethandler and PerlAuthzHandler lines permits normal
operation. What I'm trying to do is via a cookie, control access to a web
page.
The access control works, I simply can't render / run the .php.
Here's a portion of the virtual host; it's kinda garbaged up
==
alias /menu "C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs/menu"
# O&M_Menu.HTML
SetHandler modperl
PerlAuthzHandler TESTApache2::LDAPAuthz
Options Indexes execCGI
AuthType Basic
Require valid-user
# Directory for webutils for PIM
Options Indexes FollowSymLinks MultiViews
Order allow,deny
Allow from all
alias /webutils "C:/PIM/webutils"
# location for webutils for PIM
SetHandler modperl
PerlAuthzHandler TESTApache2::CookieAuthz
Options Indexes execCGI
# AuthType Basic
Require valid-user
allow from 192.168.10.10
satisfy any
==
Mime.types contain the php type
I have installed:
Apache/2.2.9 (win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h PHP/5.2.6
mod_perl/3.0.3 Perl/v5.8.9
Note that the version of mod_perl reported is 2.0.3; with Perl -Version, I
get 2.0.4
====
C:\Perl\site\bin>mp2bug
-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:
[DESCRIBE THE PROBLEM HERE]
2. Used Components and their Configuration:
*** mod_perl version 2.000004
*** using C:\Perl\site\lib\Apache2\BuildConfig.pm
*** Makefile.PL options:
MP_APR_LIB => aprext
MP_AP_PREFIX => C:\Apache2.2
MP_COMPAT_1X => 1
MP_GENERATE_XS => 1
MP_LIBNAME => mod_perl
MP_USE_DSO => 1
*** The httpd binary was not found
*** (apr|apu)-config linking info
(apr|apu)-config scripts were not found
*** C:\Perl\bin\perl.exe -V
Summary of my perl5 (revision 5 version 8 subversion 9) configuration:
Platform:
osname=MSWin32, osvers=5.00, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cl', ccflags ='-nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32
-D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -
DNO_HASH_SEED -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC
-DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERL
IO -DPERL_MSVCRT_READFIX',
optimize='-MD -Zi -DNDEBUG -O1',
cppflags='-DWIN32'
ccversion='12.00.8804', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf
-libpath:"C:\Perl\lib\CORE" -machine:x86'
libpth=\lib
libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib
ole32.lib oleaut32.lib netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib
version.lib odbc32.lib odbccp32.li
b msvcrt.lib
perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.
lib ole32.lib oleaut32.lib netapi32.lib uuid.lib ws2_32.lib mpr.lib
winmm.lib version.lib odbc32.lib odbccp3
2.lib msvcrt.lib
libc=msvcrt.lib, so=dll, useshrplib=true, libperl=perl58.lib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug
-opt:ref,icf -libpath:"C:\Perl\lib\CORE" -m
achine:x86'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
PERL_MALLOC_WRAP PL_OP_SLAB_ALLOC USE_FAST_STDIO
USE_ITHREADS USE_LARGE_FILES USE_PERLIO
USE_SITECUSTOMIZE
Locally applied patches:
ActivePerl Build 825 [288577]
Iin_load_module moved for compatibility with build 806
Less verbose ExtUtils::Install and Pod::Find
Rearrange @INC so that 'site' is searched before 'perl'
Partly reverted 24733 to preserve binary compatibility
31188 Problem killing a pseudo-forked child on Win32
29732 ANSIfy the PATH environment variable on Windows
27527,29868 win32_async_check() can loop indefinitely
26379 Fix alarm() for Windows 2003
Built under MSWin32
Compiled at Dec 14 2008 21:07:41
%ENV:
PERL_LWP_USE_HTTP_10="1"
@INC:
C:/Perl/site/lib
C:/Perl/lib
.
*** Packages of interest status:
Apache2 : -
Apache2::Request : -
CGI : -
ExtUtils::MakeMaker: -
LWP : -
mod_perl : -
mod_perl2 : -
3. This is the core dump trace: (if you get a core dump):
[CORE TRACE COMES HERE]
This report was generated by mp2bug on Sun Mar 8 20:40:14 2009 GMT.
-------------8<---------- End Bug Report --------------8<----------
Note: Complete the rest of the details and post this bug report to
modperl
email to modperl-subscribe@perl.apache.org.
--001636283b0a12c3300464a1f51e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
utils location - will not now render as a web page; the browser wants to do=
wnload the file.
l operation. What I'm trying to do is via a cookie, control access to a=
web page.
div>
2/htdocs/menu"
<Location /menu>
=A0 SetHandler =
modperl=A0
=A0 PerlAuthzHandler TESTApache2::LDAPAuthz
=
=A0 Options Indexes execCGI
=A0 Require valid-user
</Locat=
ion>
# Directory for webutils for PIM
<Directory "C:/PIM/web=
utils">
=A0 Options Indexes FollowSymLinks MultiViews
=
=A0 Order allow,deny
=A0 Allow from all
</Directory>=
;
<Location /webutils>
=A0=
SetHandler modperl=A0
=A0 PerlAuthzHandler TESTApache2::Coo=
kieAuthz
=A0 Options Indexes execCGI
# =A0 AuthType Basic<=
br> =A0 Require valid-user
allow from 192.168.10.10
satisfy any
</Location>
perl/3.0.3 Perl/v5.8.9
n,=A0I get 2.0.4
-------------8<---------- Start Bug R=
eport ------------8<----------
1. Problem Description:
=A0 MP_APR_LIB =3D> aprext<=
br>=A0 MP_AP_PREFIX =3D> C:\Apache2.2
=A0 MP_COMPAT_1X =
=3D> 1
=A0 MP_GENERATE_XS =3D> 1
=A0 MP_LIBNAME =3D=
> mod_perl
=A0 MP_USE_DSO =3D> 1
*** The httpd binary was not found
*** (apr|apu)-config linking info
Summary of my perl5 (revision 5 version=
8 subversion 9) configuration:
=A0 Platform:
=A0 osname=3DMSWi=
n32, osvers=3D5.00, archname=3DMSWin32-x86-multi-thread
=A0 uname=
=3D''
=A0 config_args=3D'undef'
=A0 hint=3Drecommended, useposix=3Dtrue, d_sigaction=3Dundef
=A0=
usethreads=3Ddefine use5005threads=3Dundef useithreads=3Ddefine usem=
ultiplicity=3Ddefine
=A0 useperlio=3Ddefine d_sfio=3Dundef uselarg=
efiles=3Ddefine usesocks=3Dundef
=A0 use64bitint=3Dundef use64bita=
ll=3Dundef uselongdouble=3Dundef
=A0 usemymalloc=3Dn, bincompat5005=3Dundef
=A0 Compiler:
=
=A0 cc=3D'cl', ccflags =3D'-nologo -GF -W3 -MD -Zi -DNDEBUG -O1=
-DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -
DNO_HASH_SEED -DUSE_=
SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT=
_SYS -DUSE_PERL
IO -DPERL_MSVCRT_READFIX',
=A0 optimize=3D'-MD -Zi -DNDEBU=
G -O1',
=A0 cppflags=3D'-DWIN32'
=A0 ccversio=
n=3D'12.00.8804', gccversion=3D'', gccosandvers=3D''=
;
=A0 intsize=3D4, longsize=3D4, ptrsize=3D4, doublesize=3D8, byte=
order=3D1234
=A0 d_longlong=3Dundef, longlongsize=3D8, d_longdbl=3Ddefine, longdbl=
size=3D8
=A0 ivtype=3D'long', ivsize=3D4, nvtype=3D'do=
uble', nvsize=3D8, Off_t=3D'__int64', lseeksize=3D8
=
=A0 alignbytes=3D8, prototype=3Ddefine
=A0 Linker and Libraries:
=A0 ld=3D'link', ldflags =3D'=
;-nologo -nodefaultlib -debug -opt:ref,icf=A0 -libpath:"C:\Perl\lib\CO=
RE"=A0 -machine:x86'
=A0 libs= oldnames.lib kernel32.=
lib user32.lib gdi32.lib winspool.lib=A0 comdlg32.lib advapi32.lib shell32.=
lib
ole32.lib oleaut32.lib=A0 netapi32.lib uuid.lib ws2_32.lib mpr.lib w=
inmm.lib=A0 version.lib odbc32.lib
=3D"_blank">odbccp32.li
b msvcrt.lib
=A0 perllibs= oldnames.lib kernel32.lib user32.l=
ib gdi32.lib winspool.lib=A0 comdlg32.lib advapi32.lib shell32.
lib ole3=
2.lib oleaut32.lib=A0 netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib=A0=
version.lib odbc32.lib odbccp3
2.lib msvcrt.lib
=A0 libc=3Dmsvcrt.lib, so=3Ddll, useshrplib=3Dtru=
e, libperl=3Dperl58.lib
=A0 gnulibc_version=3D''
=A0 Dy=
namic Linking:
=A0 dlsrc=3Ddl_win32.xs, dlext=3Ddll, d_dlsymun=3Du=
ndef, ccdlflags=3D' '
=A0 cccdlflags=3D' ', lddlfl=
ags=3D'-dll -nologo -nodefaultlib -debug -opt:ref,icf=A0 -libpath:"=
;C:\Perl\lib\CORE"=A0 -m
achine:x86'
Characteristics of this binary (from libperl):
=A0 Compile-time=
options: MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
=A0=
PERL_MALLOC_WR=
AP PL_OP_SLAB_ALLOC USE_FAST_STDIO
=
=A0 USE_ITHREADS USE_LARGE_FILES USE_PERLIO
r>
=A0 USE_S=
ITECUSTOMIZE
=A0 Locally applied patches:
=A0 Activ=
ePerl Build 825 [288577]
=A0 Iin_load_module moved for=
compatibility with build 806
=A0 Less verbose ExtUtil=
s::Install and Pod::Find
=A0 Rearrange @INC so that 'site' is searched bef=
ore 'perl'
=A0 Partly reverted 24733 to preser=
ve binary compatibility
=A0 31188 Problem killing a ps=
eudo-forked child on Win32
=A0 29732 ANSIfy the PATH e=
nvironment variable on Windows
=A0 27527,29868 win32_async_check() can loop indefinitely=
=A0 26379 Fix alarm() for Windows 2003
=A0 Built u=
nder MSWin32
=A0 Compiled at Dec 14 2008 21:07:41
=A0 %ENV:
=
=A0 PERL_LWP_USE_HTTP_10=3D"1"
=A0 @INC:
=A0 C:/Perl/site/lib
=A0 C:/Perl/lib
=
=A0 .
Apache2::Request =
: -
CGI =A0 : -
ExtUtils::M=
akeMaker: -
LWP =A0 : -
mod_=
perl : -
mod_perl2 =
=A0 : -
3. This is the core dump trace: (if you get a core dump):
---
=
modperl <at> pe=
rl.apache.org. To subscribe to the list send an empty
email to
ef=3D"mailto:modperl-subscribe@perl.apache.org" target=3D"_blank">modperl-s=
ubscribe@perl.apache.org.
=A0
--001636283b0a12c3300464a1f51e--
Re: MP2 - Apache 2.2, virtual host, .PHP script does not run
am 09.03.2009 01:46:10 von dstroma
handle the response phase.
http://perl.apache.org/docs/2.0/user/config/config.html#C_Se tHandler_
"The SetHandler directive is only relevant for response phase handlers. It
doesn't affect other phases"
----- Original Message -----
From: Edward Bosco
To: modperl@perl.apache.org
Sent: Sunday, March 08, 2009 5:11 PM
Subject: MP2 - Apache 2.2, virtual host, .PHP script does not run
A file that works - store.php - containing html and php under the /webutils
location - will not now render as a web page; the browser wants to download
the file.
Does mod_perl prevent the operation of a PHP script?
Commenting out the Sethandler and PerlAuthzHandler lines permits normal
operation. What I'm trying to do is via a cookie, control access to a web
page.
The access control works, I simply can't render / run the .php.
Here's a portion of the virtual host; it's kinda garbaged upRe: MP2 - Apache 2.2, virtual host, .PHP script does not run
am 10.03.2009 06:36:36 von Edward Bosco
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Thanks much; there were several things wrong, but that was one of them.
On Sun, Mar 8, 2009 at 8:46 PM, Dondi M. Stroma
> I don't think the SetHandler is supposed to be there if you don't want it
> to handle the response phase.
>
> http://perl.apache.org/docs/2.0/user/config/config.html#C_Se tHandler_
>
> "The SetHandler directive is only relevant for response phase handlers. It
> doesn't affect other phases"
>
> ----- Original Message ----- From: Edward Bosco
> To: modperl@perl.apache.org
> Sent: Sunday, March 08, 2009 5:11 PM
> Subject: MP2 - Apache 2.2, virtual host, .PHP script does not run
>
>
> A file that works - store.php - containing html and php under the /webutils
> location - will not now render as a web page; the browser wants to download
> the file.
> Does mod_perl prevent the operation of a PHP script?
>
> Commenting out the Sethandler and PerlAuthzHandler lines permits normal
> operation. What I'm trying to do is via a cookie, control access to a web
> page.
> The access control works, I simply can't render / run the .php.
>
> Here's a portion of the virtual host; it's kinda garbaged up
>
--0016364994416fa5090464bd22fc
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Thanks much; there were several things wrong, but that was one of them.
=
<dstroma@verizo=
n.net> wrote:
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I don't think the SetHandler=
is supposed to be there if you don't want it to handle the response ph=
ase.
tHandler_" target=3D"_blank">http://perl.apache.org/docs/2.0/user/confi g/co=
nfig.html#C_SetHandler_
"The SetHandler directive is only r=
elevant for response phase handlers. It doesn't affect other phases&quo=
t;
----- Original Message ----- From: Edward Bosco
To:
o:modperl@perl.apache.org" target=3D"_blank">modperl@perl.apache.org
>Sent: Sunday, March 08, 2009 5:11 PM
Subject: MP2 - Apache 2.2, virtual=
host, .PHP script does not run=20
A file that works - store.php - containing html a=
nd php under the /webutils location - will not now render as a web page; th=
e browser wants to download the file.
Does mod_perl prevent the operatio=
n of a PHP script?
Commenting out the Sethandler and PerlAuthzHandler lines permits normal=
operation. What I'm trying to do is via a cookie, control access to a =
web page.
The access control works, I simply can't render / run the =
..php.
Here's a portion of the virtual host; it's kinda garbaged up
r>
--0016364994416fa5090464bd22fc--